﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace TireStore.Models
{
    public class ProductInfo
    {
        public long Id { get; set; }

        [Required(ErrorMessage = "(*)")]
        public string Code { get; set; }

        [Required(ErrorMessage = "(*)")]
        public string Name { get; set; }

        public string Img { get; set; }
        public string Description { get; set; }
        public string Price { get; set; }
        public bool Status { get; set; }
        public bool Active { get; set; }

        [Required(ErrorMessage = "(*)")]
        public int ProductGroupId { get; set; }

        [Required(ErrorMessage = "(*)")]
        public int BrandId { get; set; }

        public int? MIindex { get; set; }

        public virtual Brand Brand { get; set; }
        public virtual ProductGroup ProductGroup { get; set; }
    }
}